package com.tidu.strategy.abstractSync;

import com.tidu.strategy.sync.SyncStrategy;
import lombok.Getter;

import javax.sql.DataSource;

@Getter
public abstract class AbstractSyncStrategy implements SyncStrategy {

    protected final DataSource sourceDataSource;
    protected final DataSource targetDataSource;

    public AbstractSyncStrategy(DataSource sourceDataSource, DataSource targetDataSource) {
        this.sourceDataSource = sourceDataSource;
        this.targetDataSource = targetDataSource;
    }

    // 可选：通用的辅助方法
    protected void logProgress(String progress) {
        System.out.println("Progress: " + progress);
    }
}
